package com.mall.b2c.service;

import com.mall.b2c.domain.delivery.DeliveryCenterDomain;
import com.mall.common.service.BaseService;

/**
 * Service接口 - 发货点
 * @author lzx
 */
public interface DeliveryCenterService extends BaseService<DeliveryCenterDomain, Long>  {

	/**
	 * 默认发货点
	 * @return
	 */
	DeliveryCenterDomain findDefault();

	/**
	 * 后台 - 新增
	 * @param deliveryCenter
	 * @param areaId
	 */
	void save(DeliveryCenterDomain deliveryCenter, Long areaId);

	/**
	 * 后台 -修改
	 * @param deliveryCenter
	 * @param areaId
	 */
	void edit(DeliveryCenterDomain deliveryCenter, Long areaId);

	/**
	 * 切换默认发货点
	 * @param newId
	 */
	void switchDefault(Long newId);

}